package org.berlin.octane2m;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.SwingUtilities;

import org.berlin.octane2m.ui.gui.app.BasicApp;

public class Main {

    
    public static void main(final String [] args) {
        System.out.println("Launching");
    
        try {    
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    
                    final JFrame outerFrame = new JFrame("Octane2Mini - JVM OS"); 
                    final JDesktopPane desktopPane = new JDesktopPane(); 
                    final JInternalFrame internalBootupFrame = new JInternalFrame("Kernel Console",true,true,true,true);
                                        
                    final BasicApp app = new BasicApp();
                    app.createApplication(internalBootupFrame);
                                         
                    outerFrame.setSize(980, 810);
                    outerFrame.setLocation(80, 80);
                    
                    outerFrame.getContentPane().add(desktopPane); 
                    desktopPane.add(internalBootupFrame);       
                    internalBootupFrame.pack();
                    
                    outerFrame.setVisible(true);
                    internalBootupFrame.setVisible(true);                                                                              
                }
             });            
        } finally {            
        }        
                
    } // End of the method //
    
} // End of the class //
